package api;


import java.util.Map;

/**
 * @ Type : com.weiyi.ehr.monitor.api
 * @ Author : TimLi
 * @ Desc :
 * @ Date : 2016-07-06 13:30
 */
public class MonintorFactory {


    private static  Map<String,MonitorService> monitorMap=null;

    public Map<String, MonitorService> getMonitorMap() {
        return monitorMap;
    }

    public void setMonitorMap(Map<String, MonitorService> monitorMap) {
        this.monitorMap = monitorMap;
    }

    public static MonitorService getMonitor(MonintorEmus emus){
        return   monitorMap.get(emus.getKey());
    }
}
